<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
	
	
		<base href="<%=basePath%>">
		<script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title> 用户登陆成功  </title>
		
		
		<script type="text/javascript">
		     function pass(){
		      location.href='data/toPersonal';
		     }
		</script>
		<style type="text/css">
		    
		     
		     table {
                  border-collapse:collapse;
                  table-layout:auto;                 
                     }
             th{
                background-color:silver;
                     }
		     
		      table, td, th{
                          border:1px solid black;     
                              }
             input{
                   width:80px;
                       }
             .body{    
			      background-image: url(<%=basePath%>/img/blueworld.jpg);    			        
			    }          
		</style>
	</head>
<body class="body">
<center>
  <div class="body"><hr><h1><i>WELCOME!!!</i></h1><hr></div>
      <div><h2><span>欢迎  ${loginform.username } 登陆！</span></h2></div><br><br>
      
      
   <%--    <form name="personalForm" action="">
      <h2>个人登录信息</h2>
      <table id="personaltable" border="1">
      
      <tbody align="center">
			
			<tr>
			    			  
				<th>用户</th>
				<th>密码</th>				
				<th>类型</th>			
				<th>编辑</th>				
			</tr>
      <c:if test="${not empty loginForm }">
      <tr>      
      <td><input type="text" name="username" id="username" value="${loginForm.username }"><br></td>
      <td><input type="text" name="password" id="password" value="${loginForm.password }"><br></td>
      <td><input type="text" name="usertype" id="usertype" value="${loginForm.usertype }"><br></td>
      
      <td><a href="data/getUserByUsername?username=${loginForm.username }">编辑个人资料</a></td>	
      </tr>
      </c:if>
      
      
      </tbody>
      </table>
      </form> --%>
      <br>
       <div><input type="button" value="进入主页" onclick="pass();"/></div>
</center>
</body>
</html>